package ThreadPool.lagou.concurrent.cyclicBarrier.demo01;

import java.util.concurrent.CyclicBarrier;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description: TODO
 * @date 2022/10/5 16:56
 */
public class Main {

    public static void main(String[] args) {
        CyclicBarrier barrier = new CyclicBarrier(5);

        for (int i = 1; i <= 5 ; i++) {
            new MyThread("线程"+i,barrier).start();
        }
    }
}
